package com.smt.ejb3.tutoria.client;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.smt.ejb3.tutoria.callback.insideentity.Apple;
import com.smt.ejb3.tutoria.callback.insideentity.AppleManager;

public class AppleClient {
	public static void main(String[] args) {
		
		try {
			InitialContext ctx = new InitialContext();

			AppleManager service = (AppleManager) ctx
					.lookup("AppleManagerBean/remote");
			service.saveApple(new Apple());

		} catch (NamingException ex) {
			ex.printStackTrace();
		}
	}
}
